Copyright(C) 1994 Terumasa KODAKA , Takeshi KONO
■ Sound BIOS
o The vector address for the Sound BIOS (INT D2h) is not set at boot time.
Before using the Sound BIOS, you need to set the vector address for INT D2h beforehand.
When the Sound BIOS ROM segment is CC00h, information regarding the vector address is stored from CEE0:0000h.
-----------+--------------+------------------------------
Address | Value | Meaning
-----------+--------------+------------------------------
CEE0:0000h | 01h | Number of entries
CEE0:0001h | 00h | Unused
CEE0:0002h | 00h | Unused
CEE0:0003h | 00h | Unused
CEE0:0004h | D2h | Vector number
CEE0:0005h | 00h | Unused
CEE0:0006h | OFFSET(WORD) | Sound BIOS entry offset
-----------+--------------+------------------------------
* The segment value of the Sound BIOS entry address is CEE0h.
o The Sound BIOS ROM address can be changed (default CC000h).
o The Sound BIOS vector number does not necessarily have to be INT D2h, but the N88-BASIC
interpreter uses INT D2h as the Sound BIOS vector number.
INT D2h - Function 00h
Category: Sound BIOS
Name: Sound BIOS Initialization [INITIALIZE]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=00h
ES=Sound BIOS working area segment base
Output: None
Description: Refer to the technical data book.
Related: 0000:05E0h
INT D2h - Function 01h
Category: Sound BIOS
Name: Start Playback [PLAY]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=01h
ES:BX=Start address of the parameter list
Output: None
Description: Refer to the technical data book.
Related:
INT D2h - Function 02h
Category: Sound BIOS
Name: End Playback [CLEAR]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=02h
AL=Processing specification
00h: Stop playback and initialize the buffer
01h: Stop playback and initialize the buffer and common control information area
Output: None
Description: Refer to the technical data book.
Related:
INT D2h - Function 10h
Category: Sound BIOS
Name: Read OPN Register [READ REG]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=10h
AL=Register number
Output: BH=00h
BL=Register contents
Description: Refer to the technical data book.
Related:
INT D2h - Function 11h
Category: Sound BIOS
Name: Write OPN Register [WRITE REG]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=11h
AL=Register number
BL=Setting value
Output: None
Description: Refer to the technical data book.
Delayed function format:
1st byte = 81h
2nd byte = Register number
3rd byte = Setting value
Related:
INT D2h - Function 12h
Category: Sound BIOS
Name: Setting G/S Value [SET TOUCH]
Target: BIOS equivalent to PC-9801-26
Input: AH=12h
AL=Channel specification (00-05h = CH1-CH6)
BL=G/S value (00-07h = 1/8 - 8/8)
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = 82h
2nd byte = G/S setting value
Related:
INT D2h - Function 13h
Category: Sound BIOS
Name: Setting Pitch and Duration [NOTE]
Target: BIOS equivalent to PC-9801-26
Input: AH=13h
AL=Channel specification (00-05h = CH1-CH6)
BH=Key No. (00-60h = Key number 0-96, 80h: Rest)
BL=Duration (00h: Default value, 01-FFh: Duration)
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = Key No.
2nd byte = Duration
Related:
INT D2h - Function 14h
Category: Sound BIOS
Name: Setting Default Duration [SET LENGTH]
Target: BIOS equivalent to PC-9801-26
Input: AH=14h
AL=Channel specification (00-05h = CH1-CH6)
BL=Duration
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = 83h
2nd byte = Duration (01-FFh)
Related:
INT D2h - Function 15h
Category: Sound BIOS
Name: Setting Tempo [SET TEMPO]
Target: BIOS equivalent to PC-9801-26
Input: AH=15h
BL=Tempo number (01-FFh... Quarter notes per minute)
Output: None
Explanation: o Refer to the technical data book.
o Delayed function format
1st byte = 84h
2nd byte = Tempo number
Related
INT D2h - Function 16h
Category: Sound BIOS
Name: Write all parameters [SET PARA BLOCK]
Target: PC-9801-26 equivalent BIOS
Input: AH=16h
AL=Channel specification (00-05h = CH1-CH6)
ES:BX = Starting address of the setting parameter block
DL = Parameter block format
00h: WORD
01h: BYTE
Output: None
Explanation: o Refer to the technical data book.
o Delayed function format
1st byte = 85h
2nd byte = Parameter block format
00h: WORD
01h: BYTE
3rd, 4th bytes = Setting parameter block start offset
5th, 6th bytes = Setting parameter block start segment
Related
INT D2h - Function 17h
Category: Sound BIOS
Name: Read parameter [READ PARA]
Target: PC-9801-26 equivalent BIOS
Input: AH=17h
AL=Channel specification (00-05h = CH1-CH6)
BL=Parameter number (00-31h = Parameter No. 0-49)
Output: BX = Set value
Explanation: o Refer to the technical data book.
Related
INT D2h - Function 18h
Category: Sound BIOS
Name: Write Parameter [WRITE PARA]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=18h
AL=Channel specification (00-05h = CH1-CH6)
BL=Parameter number (00-31h = Parameter No. 0-49)
DX=Setting value
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = 86h
2nd byte = Parameter number
3rd, 4th bytes = Setting value
Related:
INT D2h - Function 19h
Category: Sound BIOS
Name: Pause Playback [ALL STOP]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=19h
Output: None
Explanation: o Refer to the technical data book
Related:
INT D2h - Function 1Ah
Category: Sound BIOS
Name: Resume Playback [CONT PLAY]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=1Ah
Output: None
Explanation: o Refer to the technical data book
Related:
INT D2h - Function 1Bh
Category: Sound BIOS
Name: LFO Effect ON [MODU ON]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=1Bh
AL=Channel specification (00-05h = CH1-CH6)
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = 87h
Related:
INT D2h - Function 1Ch
Category: Sound BIOS
Name: LFO Effect OFF [MODU OFF]
Target: BIOS equivalent to that installed on PC-9801-26
Input: AH=1Ch
AL=Channel specification (00-05h = CH1-CH6)
Output: None
Explanation: o Refer to the technical data book
o Delayed function format
1st byte = 88h
Related:
INT D2h - Function 1Dh
Category: Sound BIOS
Name: Interrupt Condition Setting [SET INT COND]
Target: PC-9801-26 equivalent BIOS
Input: AH=1Dh
AL = Channel specification (00-05h = CH1-CH6)
ES:BX = Entry point of the interrupt routine
DX = Valid buffer length
bit 15: Interrupt (0: Disable, 1: Enable)
bit 14-0: Valid buffer length
Output: None
Explanation: The technical data book describes setting the valid buffer length in CX, but DX is correct.
Refer to the technical data book.
Related:
INT D2h - Function 1Eh
Category: Sound BIOS
Name: Maintain Sound State [HOLD STATE]
Target: PC-9801-26 equivalent BIOS
Input: AH=1Eh
AL = Channel specification (00-05h = CH1-CH6)
BL = Length to maintain (00h: Default value, 01-FFh: Sound length)
Output: None
Explanation: Refer to the technical data book.
Delayed function format:
1st byte = 89h
2nd byte = Length to maintain
Related:
INT D2h - Function 1Fh
Category: Sound BIOS
Name: Set FM Sound Source Volume [SET VOLUME]
Target: PC-9801-26 equivalent BIOS
Input: AH=1Fh
AL = Channel specification (00-02h = CH1-CH3)
BL = Setting value (00-7Fh = Minimum to Maximum)
Output: None
Explanation: Refer to the technical data book.
Delayed function format:
1st byte = 8Ah
2nd byte = Setting value
Related: